import warning from './mock/warning';
import { createPromise } from './util';
import Mock from 'mockjs';
export const history = (data) => {
  return createPromise(Mock.mock(warning['history']));
}
/** 预警区域分布 */
export const area = (data) => {
  return createPromise(Mock.mock(warning['area']));
}
/** 预警类别统计 */
export const type = (data) => {
  return createPromise(Mock.mock(warning['type']));
}
/** 风险级别统计  */
export const level = (data) => {
  return createPromise(Mock.mock(warning['level']));
}
